package com.guet.niit.User.pojo;

import java.util.Date;

public class ChargingRecord {
    private Long id;
    private Long user_id;
    private double cost;
    private Date start_time;
    private Date end_time;
    private int run_time;
    private int status;
    private Long car_id;

    public ChargingRecord(Long id, long user_id, double cost, Date start_time, Date end_time, int run_time, int status,
                          Long car_id) {
        this.id = id;
        this.user_id = user_id;
        this.cost = cost;
        this.start_time = start_time;
        this.end_time = end_time;
        this.run_time = run_time;
        this.status = status;
        this.car_id = car_id;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    public Date getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Date end_time) {
        this.end_time = end_time;
    }

    public int getRun_time() {
        return run_time;
    }

    public void setRun_time(int run_time) {
        this.run_time = run_time;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Long getCar_id() {
        return car_id;
    }

    public void setCar_id(Long car_id) {
        this.car_id = car_id;
    }

    @Override
    public String toString() {
        return "id=" + id +
                ", user_id=" + user_id +
                ", cost=" + cost +
                ", start_time=" + start_time +
                ", end_time=" + end_time +
                ", run_time=" + run_time +
                ", status=" + status +
                ", car_id=" + car_id ;
    }
}

